const a = async function (...args) {
  const [d, l] = args.slice(-2);
  const { memory } = d;
  const {
    dc: { close, http, open },
    xe: { get, set },
  } = l;
  console.log("modal button click: ", d, l);
  const data = get(memory, "modal");
  if (!data) return;
  const params = {
    guids: data
      .map(function ({ guid }) {
        return guid;
      })
      .join(","),
  };
  set(memory, "modal", []);
  await http.form({ url: "/nyk/enterprise/synByGuid", data: params });
  set(memory, "ret", true);
  close(true);
};